package com.barry.utils;

/**
 * @author wangxuexing
 * @descrption scf-score
 * @date 2019/12/3
 */
public class ExceptionUtil {

    /**
     * 编写一个泛型方法对异常进行包装,lambda内异常抛出
     * @param e
     * @param <E>
     * @throws E
     */
    public static <E extends Exception> void doThrow(Throwable e) throws E {
        throw (E)e;
    }
}
